﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VH6I_B4.Datawarehouse.Models
{
    /// <summary>
    /// Omschrijft een tijdsperiode
    /// </summary>
    class Timeperiod
    {
        private int id, year, quarter;

        public Timeperiod(int year, int quarter)
        {
            Year = year;
            Quarter = quarter;
        }

        public override bool Equals(object obj)
        {
            bool result = false;

            if (obj != null)
            {
                Timeperiod timeperiod = (Timeperiod)obj;
                if (timeperiod.Year.Equals(Year)
                    && timeperiod.Quarter.Equals(Quarter))
                {
                    result = true;
                }
            }

            return result;
        }

        public int Id       { get { return id; }        set { id = value; } }
        public int Year     { get { return year; }      set { year = value; } }
        public int Quarter  { get { return quarter; }   set { quarter = value; } }
    }
}
